home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr22 / dubltk25.zip / ED-LINNO.BAT < prev    next >
DOS Batch File  |  1993-05-31  |  1KB  |  32 lines

  1. :This is the DoubleTake Professional file editor batch file for
  2. :editors which can accept single files on the command line with a
  3. :designation of the line number to begin editing. Change the name
  4. :of this file to DTEd2Fil.BAT to invoke this file for editing 2
  5. :files.
  6. :
  7. :You must also copy this file to DTEd1Fil.BAT to invoke this file
  8. :for editing 1 file.  Note the lines below which detect whether
  9. :one or two files have been passed in to this batch file.
  10. :
  11. :following commands when you press [Alt-E] in DoubleTake.
  12. :The name "ne" following represents an editor which indicates the
  13. :starting line number by including a plus sign followed by the line
  14. :number on the command line, followed by the file to edit.
  15. :Ensure that your editor's name is included below and that the editor
  16. :is in your DOS PATH.
  17. :
  18. :Use any editor you choose (but it must be capable of indicating
  19. :the line number on the command line).  If your editor uses another
  20. :convention for indicating the line number, change the +%3 and +%4
  21. :parameters below to correspond to its convention
  22. :
  23. if %3. == . goto onefile
  24. : if 3 is there, so will be 4...
  25. ne +%3 %1
  26. ne +%4 %2
  27. goto done
  28. :onefile
  29. ne +%2 %1
  30. :done
  31. pause
  32.